package com.hyl.controller;

import com.hyl.entity.SysUser;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description 供应商
 * @Author hyl
 * @Date 2023/5/18 11:03
 **/
@Controller
@RequestMapping("/supplier")
public class SupplierController {

	@GetMapping("/list")
	public String list(){
		return "supplier/list";
	}

	@GetMapping("/toadd") //进入页面
	public String toadd(){
		return "supplier/add";
	}

	@GetMapping("/add")//添加
	public String add(SysUser obj){
		return "redirect:list";
	}

	@GetMapping("/view/{id}")
	public String view(@PathVariable Integer id){
		return "supplier/view";
	}
}
